package com.cy.java.basic;

import com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiNilLoader;

import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println(Arrays.toString(args));
        System.out.println("HelloWrold");
        //触发GC的手段
        //1)手动GC
        //System.gc();
        //2)自动GC

        List<byte[]> list=new ArrayList<>();
        for (int i=0;i<10000;i++){
            //list.add(new byte[1024*0124]);
            byte[] array=new byte[1024*1024];
        }
    }

}
